package org.tuoren.official.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import org.tuoren.official.domain.TBusinessSupport;

/**
 * 商务配套设施业务对象 t_business_support
 *
 * @author Lion Li
 * @since 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TBusinessSupport.class, reverseConvertGenerate = false)
public class TBusinessSupportBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类型（1:服务设施  2:业务联系方式）
     */
    @NotBlank(message = "类型（1:服务设施  2:业务联系方式）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 设施名称
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 简述
     */
    private String businessDesc;

    /**
     * 地址
     */
    private String address;

    /**
     * 联系方式
     */
    @NotBlank(message = "联系方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 宣传图
     */
    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photoUrl;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;
}
